
public class Login {
	
	private String userName;
	private String password;
	
	private Kayit myKayit = new Kayit();
	
	public String register(){
		return "login";
	}
	
	public String testLogin(){
		
		if(getUserName().equals(getMyKayit().getKullaniciAdi())&&getPassword().equals(getMyKayit().getSifre())){
			return "1";
		}else{
			return "0";
		}
		
		
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserName() {
		return userName;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword() {
		return password;
	}

	public void setMyKayit(Kayit myKayit) {
		this.myKayit = myKayit;
	}

	public Kayit getMyKayit() {
		return myKayit;
	}

}
